package com.cmc.cloud.cmclink.doc.vo;

import com.cmes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

/**
 * 邮件发送任务单分页 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 邮件发送任务单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class EmailSendTaskPageReqVO extends PageParam {

    @Schema(description = "申请号")
    private String applyNo;

    @Schema(description = "订舱号")
    private String bookingNo;

    @Schema(description = "货物类型", example = "1")
    private String cargoType;

    @Schema(description = "发送状态", example = "2")
    private String sendStatus;

    @Schema(description = "船名", example = "2")
    private String vesselCode;

    @Schema(description = "航次")
    private String voyageEx;

    @Schema(description = "装货港")
    private String polCode;

    @Schema(description = "申请时间 Start")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate applyStartDate;

    @Schema(description = "申请时间 End")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate applyEndDate;

    @Schema(description = "邮件发送时间 Start")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate sendStartDate;

    @Schema(description = "邮件发送时间 End")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate sendEndDate;

}
